package com.green.voluntaryfiling.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2022/03/14/23:45
 * @Description: 
 */


@Data
@NoArgsConstructor

@TableName(value = "userlogin")
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableId(value = "username")
    private String username;

    /**
     * 用户地址
     */
    @TableField(value = "userImg")
    private String userimg;

    /**
     * 地区
     */
    @TableField(value = "area")
    private String area;

    /**
     * 科目
     */
    @TableField(value = "subject")
    private String subject;

    /**
     * 分数
     */
    @TableField(value = "st_score")
    private Double stScore;

    /**
     * 排名
     */
    @TableField(value = "st_ranking")
    private Integer stRanking;

    /**
     * 主学科
     */
    @TableField(value = "main_subject")
    private String mainSubject;

    /**
     * 次学科1
     */
    @TableField(value = "second_subject")
    private String secondSubject;

    /**
     * 次学科2
     */
    @TableField(value = "third_subject")
    private String thirdSubject;

    /**
     * 访问次数
     */
    @TableId(value = "search_times")
    private Integer searchTimes;

    public static final String COL_USERNAME = "username";

    public static final String COL_USERIMG = "userImg";

    public static final String COL_AREA = "area";

    public static final String COL_SUBJECT = "subject";

    public static final String COL_ST_SCORE = "st_score";

    public static final String COL_ST_RANKING = "st_ranking";

    public static final String COL_MAIN_SUBJECT = "main_subject";

    public static final String COL_SECOND_SUBJECT = "second_subject";

    public static final String COL_THIRD_SUBJECT = "third_subject";
}